package com.object.configuration.rabbitmq;

//rabbitmq发送我们的订单服务

import com.common.rabitmq.RabbitmqName;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class RabbitmqUtil {

    @Autowired
    private RabbitTemplate rabbitTemplate;

    private String ExchangeName = "exchange_topic";

    /**
     * 推送支付信息
     */
    public void sendPaymentInformation(String uuid) {
        rabbitTemplate.convertAndSend(ExchangeName, RabbitmqName.rapid_pay_routing_key, uuid);
    }
}
